package cn.kgm.user.dto.dto;

import cn.kgm.core.entity.Entity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.SuperBuilder;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

/**
 * # 技术改变自己 #
 * 用户登录设备
 * @author kappi
 * @date   2024-04-08 13:28:48
 */
@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "UserEquipmentSaveDTO", description = "用户登录设备")
public class UserEquipmentSaveDTO extends Entity<Long> {

    /**
     * 设备名称
     */
    @ApiModelProperty(value = "设备名称", position = 2)
    @Size(max = 32, message = "设备名称长度不能超过32")
    @NotBlank(message = "设备名称不能为空")
    private String name;

    /**
     * 设备型号
     */
    @ApiModelProperty(value = "设备型号", position = 3)
    @Size(max = 32, message = "设备型号长度不能超过32")
    @NotBlank(message = "设备型号不能为空")
    private String model;

    /**
     * 设备ID
     */
    @ApiModelProperty(value = "设备ID", position = 4)
    @Size(max = 32, message = "设备ID长度不能超过32")
    @NotBlank(message = "设备ID不能为空")
    private String eqptId;

}
